package com.ruoyi.cs.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.cs.domain.TWarReceive;
import com.ruoyi.cs.mapper.TWarReceiveMapper;
import com.ruoyi.cs.service.ITWarReceiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 战令领取Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-11
 */
@Service
@SuppressWarnings("all")
public class TWarReceiveServiceImpl implements ITWarReceiveService
{
    @Autowired
    private TWarReceiveMapper tWarReceiveMapper;

    /**
     * 查询战令领取
     * 
     * @param id 战令领取主键
     * @return 战令领取
     */
    @Override
    public TWarReceive selectTWarReceiveById(Long id)
    {
        return tWarReceiveMapper.selectTWarReceiveById(id);
    }

    /**
     * 查询战令领取列表
     * 
     * @param tWarReceive 战令领取
     * @return 战令领取
     */
    @Override
    public List<TWarReceive> selectTWarReceiveList(TWarReceive tWarReceive)
    {
        return tWarReceiveMapper.selectTWarReceiveList(tWarReceive);
    }

    /**
     * 新增战令领取
     * 
     * @param tWarReceive 战令领取
     * @return 结果
     */
    @Override
    public int insertTWarReceive(TWarReceive tWarReceive)
    {
        tWarReceive.setCreateTime(DateUtils.getNowDate());
        return tWarReceiveMapper.insertTWarReceive(tWarReceive);
    }

    /**
     * 修改战令领取
     * 
     * @param tWarReceive 战令领取
     * @return 结果
     */
    @Override
    public int updateTWarReceive(TWarReceive tWarReceive)
    {
        return tWarReceiveMapper.updateTWarReceive(tWarReceive);
    }

    /**
     * 批量删除战令领取
     * 
     * @param ids 需要删除的战令领取主键
     * @return 结果
     */
    @Override
    public int deleteTWarReceiveByIds(Long[] ids)
    {
        return tWarReceiveMapper.deleteTWarReceiveByIds(ids);
    }

    /**
     * 删除战令领取信息
     * 
     * @param id 战令领取主键
     * @return 结果
     */
    @Override
    public int deleteTWarReceiveById(Long id)
    {
        return tWarReceiveMapper.deleteTWarReceiveById(id);
    }
}
